package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;


/**
 * 中国区域 实体类
 *
 * @author Chill
 */
@Data
@TableName("nova_china_area")
@Schema(description = "ChinaArea对象")
public class ChinaAreaEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id 主键雪花算法id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(type = IdType.INPUT)
	@Schema(description = "主键id")
	private Long id;
	/**
	 * 名称
	 */
    @Schema(description = "名称")
    @TableField("name")
	private String name;
	/**
	 * 父级ID
	 */
    @Schema(description = "父级ID")
    @TableField("parent_id")
	private Long parentId;
	/**
	 * 级别
	 */
    @Schema(description = "级别")
    @TableField("level")
	private String level;
	/**
	 * 简称
	 */
    @Schema(description = "简称")
    @TableField("short_name")
	private String shortName;
	/**
	 * lng坐标
	 */
    @Schema(description = "lng坐标")
    @TableField("lng")
	private String lng;
	/**
	 * lat坐标
	 */
    @Schema(description = "lat坐标")
    @TableField("lat")
	private String lat;
	/**
	 * 子元素数量
	 */
    @Schema(description = "子元素数量")
    @TableField("children_num")
	private Integer childrenNum;
	/**
	 * 状态
	 */
    @Schema(description = "状态")
    @TableField("state")
	private Integer state;

}
